package com.yin.verify;

public enum Permission {
	Admin, User;
	
	//Return the user's permission
	public static Permission parsePermission(String permission) {
		
		switch(permission.toLowerCase()) {
		case "admin":
			return Permission.Admin;
			
		case "user":
			return Permission.User;
		}
		
		return Permission.User;
	}
}
